<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" session="false" %>
<%
	String path = request.getContextPath();
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Home</title>
<!-- ExtJS 样式 -->
<link rel="stylesheet" type="text/css" href="${path}/script/extjs-3.2.1/resources/css/ext-all.css" />
<!-- 先引入底层驱动，一般用ext自己的，如果要使用jquery的，还要先引入jquery库 -->
<script type="text/javascript" src="${path}/script/extjs-3.2.1/adapter/ext/ext-base.js"></script>
<!-- ExtJs all -->
<script type="text/javascript" src="${path}/script/extjs-3.2.1/ext-all.js"></script>
</head>
<body>
<script type="text/javascript">
Ext.onReady(function(){
	// 1.viewport继承Container，代表整个应用程序界面
	// 自动渲染到body上，一般用于做主界面，都不要自己写div了
	new Ext.Viewport({
		layout: "border",
		items: [
			{region:"north", title: "顶部Logo", height: 100},
			{region:"west", title: "菜单", width: 150},
			{region:"center", title: "主区域"}
		]
	});

	// 2.window
	// model模态窗口
	var win = new Ext.Window({
		width: 300,
		height: 200,
		modal: true
	});
	win.show();
});
</script>
</body>
</html>
